package com.xhs.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Swagger配置类
 *
 * @author xhs
 */
@Configuration
public class SwaggerConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("小红书登录服务API")
                        .description("基于SpringBoot 3.x + Playwright的小红书自动登录服务")
                        .version("1.0.0")
                        .contact(new Contact()
                                .name("XHS Team")
                                .email("support@xhs.com")
                                .url("https://github.com/xhs/xhs-login-service"))
                        .license(new License()
                                .name("MIT License")
                                .url("https://opensource.org/licenses/MIT")));
    }
} 